package Day4Zuoye;

import java.io.File;
import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("输入一个源文件名:");
        String i=input.nextLine();
        File file=new File(i);
        System.out.println("输入目标文件夹:");
        String j=input.nextLine();
        File file1=new File(j);
        boolean a=file.renameTo(file1);
        System.out.println(a);
    }
}
